//
//  CNBBSDetailCell.h
//  CsdnPlus
//
//  Created by 孟瑞瑞 on 2018/7/17.
//  Copyright © 2018年 CSDN. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CNBBSDetailCell;

@protocol CNBBSDetailCellDelegate <NSObject>
@optional
/// 点击了 头像
- (void)cellDidClickHeadImage:(CNBBSDetailCell *)cell;
/// 点击了回复
- (void)cellDidClickReplyButton:(CNBBSDetailCell *)cell;
/// 点击了 顶
- (void)cellDidClickDiggButton:(CNBBSDetailCell *)cell;

/// 点击了 举报
- (void)cellDidClickReportButton:(CNBBSDetailCell *)cell;

/// 点击了 屏蔽
- (void)cellDidClickShieldButton:(CNBBSDetailCell *)cell;

/// 刷新
- (void)reloadCellHeight:(CNBBSDetailCell *)cell;

@end

@interface CNBBSDetailCell : UITableViewCell

@property (nonatomic, weak) id<CNBBSDetailCellDelegate> delegate;

@property (nonatomic, copy) NSString *htmlText;

@property (nonatomic, strong) UILabel *floorLb;

@property (nonatomic, copy) NSString *headUrl;

@property (nonatomic, copy) NSString *nickName;

@property (nonatomic, copy) NSString *floorText;

@property (nonatomic, copy) NSString *timeText;

@property (nonatomic, copy) NSString *score;

@property (nonatomic, assign) BOOL isScore;

@property (nonatomic, copy) NSString *diggCount;

@property(nonatomic,assign) BOOL isDigg;//是否已经点赞

@property (nonatomic, assign) CGFloat cellHeight;

@property (nonatomic, strong) NSIndexPath *indexPath;

@end
